// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'MaintainPlanId',
        footer: "Foots",
        cnName: '维护计划',
        name: 'MaintainPlan',
        newTabEdit: false,
        url: "/MaintainPlan/",
        sortName: "MaintainPlanId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"BillNo":"","MaintainPlanName":"","BillDate":"","MaintainWorkTypeName":"","DeviceNumber":"","DeviceName":"","DeviceSpec":"","DeviceSize":"","StandardWorkName":"","EffectiveDate":"","EffectiveEndDate":"","EstimatedNextWorkTime":"","RecentHomeworkTime":"","RuleType":"","SpecifiedExecutionDate":""};
    const editFormOptions = [[{"title":"计划编码","field":"BillNo","type":"text"},
                               {"title":"维护计划名称","field":"MaintainPlanName","type":"text"},
                               {"title":"单据日期","field":"BillDate","type":"date"},
                               {"title":"维护作业类型","field":"MaintainWorkTypeName","type":"text"}],
                              [{"title":"设备编码","field":"DeviceNumber","type":"text"},
                               {"title":"设备名称","field":"DeviceName","disabled":true,"type":"text"},
                               {"title":"设备规格型号","field":"DeviceSpec","disabled":true,"type":"text"},
                               {"title":"设备尺寸","field":"DeviceSize","disabled":true,"type":"text"}],
                              [{"title":"标准作业","field":"StandardWorkName","type":"text"},
                               {"title":"开始生效日期","field":"EffectiveDate","type":"datetime"},
                               {"title":"生效结束时间","field":"EffectiveEndDate","type":"datetime"},
                               {"title":"预计下次作业时间","field":"EstimatedNextWorkTime","type":"datetime"}],
                              [{"title":"最近作业时间","field":"RecentHomeworkTime","type":"datetime"},
                               {"title":"规则类型","field":"RuleType","type":"number"},
                               {"title":"指定执行日期","field":"SpecifiedExecutionDate","type":"datetime"}]];
    const searchFormFields = {"BillNo":"","MaintainPlanName":"","BillDate":""};
    const searchFormOptions = [[{"title":"计划编码","field":"BillNo","type":"like"},{"title":"维护计划名称","field":"MaintainPlanName","type":"like"},{"title":"单据日期","field":"BillDate","type":"date"}]];
    const columns = [{field:'MaintainPlanId',title:'维护计划标识',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'BillNo',title:'计划编码',type:'string',link:true,width:110,align:'left'},
                       {field:'MaintainPlanName',title:'维护计划名称',type:'string',width:110,align:'left'},
                       {field:'BillDate',title:'单据日期',type:'datetime',width:110,align:'left'},
                       {field:'MaintainWorkTypeId',title:'维护作业类型标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'MaintainWorkTypeName',title:'维护作业类型',type:'string',width:110,align:'left'},
                       {field:'DeviceId',title:'设备标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'DeviceNumber',title:'设备编码',type:'string',width:110,align:'left'},
                       {field:'DeviceName',title:'设备名称',type:'string',width:110,readonly:true,align:'left'},
                       {field:'DeviceSpec',title:'设备规格型号',type:'string',width:110,readonly:true,align:'left'},
                       {field:'DeviceSize',title:'设备尺寸',type:'string',width:110,readonly:true,align:'left'},
                       {field:'StandardWorkId',title:'标准作业标识',type:'int',width:110,hidden:true,align:'left'},
                       {field:'StandardWorkName',title:'标准作业',type:'string',width:110,align:'left'},
                       {field:'EffectiveDate',title:'开始生效日期',type:'datetime',width:110,align:'left'},
                       {field:'EffectiveEndDate',title:'生效结束时间',type:'datetime',width:110,align:'left'},
                       {field:'EstimatedNextWorkTime',title:'预计下次作业时间',type:'datetime',width:110,align:'left'},
                       {field:'RecentHomeworkTime',title:'最近作业时间',type:'datetime',width:110,align:'left'},
                       {field:'RuleType',title:'规则类型',type:'int',width:110,align:'left'},
                       {field:'SpecifiedExecutionDate',title:'指定执行日期',type:'datetime',width:110,align:'left'},
                       {field:'CreateID',title:'创建人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Creator',title:'创建人名称',type:'string',width:100,align:'left'},
                       {field:'CreateDate',title:'创建日期',type:'datetime',width:110,align:'left'},
                       {field:'ModifyID',title:'修改人标识',type:'int',width:80,hidden:true,align:'left'},
                       {field:'Modifier',title:'修改人名称',type:'string',width:100,align:'left'},
                       {field:'ModifyDate',title:'修改日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditDate',title:'审核日期',type:'datetime',width:110,align:'left'},
                       {field:'AuditStatus',title:'审核状态',type:'int',bind:{ key:'audit',data:[]},width:110,align:'left'},
                       {field:'AuditId',title:'审核人标识',type:'int',width:110,align:'left'},
                       {field:'Auditor',title:'审核人',type:'string',width:120,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}